import {defineStore} from 'pinia'
import axios from '../axios'

const accountStore = defineStore({ 
    id: 'accountStore',
    state: () => ({ 

    }),
    actions: { 
        upPassWord (params) { 
            return new Promise((reslove, reject) => { 
                axios.post('/user.User/re_pay_password', params).then(res => { 
                    reslove(res.data)
                }).catch(err => { 
                    reject(err.data)
                })
            })
        }
    }
})

export default accountStore